package com.my.study.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component
@Configuration
@Data
public class CanalConfig {

    @Value("${canal.server.ip}")
    private String canalServerIp;

    @Value("${canal.server.port}")
    private int canalServerPort;

    @Value("${canal.server.username:root}")
    private String userName;

    @Value("${canal.server.password:root}")
    private String password;

    @Value("${canal.promotion.destination}")
    private String destination;

    @Value("${canal.promotion.batchSize}")
    private int batchSize;

    @Value("${canal.promotion.tableName}")
    private String tableName;
}
